<?php
/**
 * Created by PhpStorm.
 * User: 秋枫雁飞
 * Date: 2019/3/26
 * Time: 11:11
 */

namespace Aiweline\Core\Helper;
/**
 * Aiweline_Core data helper
 *
 * @api
 *
 * @SuppressWarnings(PHPMD.TooManyFields)
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 * @since 100.0.2
 */
class Config
{
	/**
	 * [$scopeConfig 系统接口对象变量]
	 * @var \Magento\Framework\App\Config\ScopeConfigInterface
	 */
	private $scopeConfig;
	/**
	 * [__construct 初始化]
	 * @param  \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig [系统配置接口类]
	 */
	function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig){
		$this->scopeConfig=$scopeConfig;
	}
    /**
     * [getConfig 获取系统配置]
     * @param  string $path [xml配置路径]
     * @return mixed       [返回混合结果]
     */
    public function getConfig($path)
    {
        return $this->scopeConfig->getValue($path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
    }
}

